package com.coder4j.platform.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * 资源 Excel导出对象
 * @author keller
 * @date 2024-05-07 18:10:11
 */
@Data
public class AuthResourceEO{

    @ExcelProperty(value = "O 为根资源")
    @ColumnWidth(25)
    private Long id;

    @ExcelProperty(value = "上级ID")
    @ColumnWidth(25)
    private Long parentId;

    @ExcelProperty(value = "资源路径，从根资源到本资源的id集合，下划线开始，下划线分隔。如：_0_1_4")
    @ColumnWidth(25)
    private String uniquePath;

    @ExcelProperty(value = "描述")
    @ColumnWidth(25)
    private String description;

    @ExcelProperty(value = "资源名称")
    @ColumnWidth(25)
    private String name;

    @ExcelProperty(value = "资源类型 Menu 菜单，Button 按钮")
    @ColumnWidth(25)
    private String type;

    @ExcelProperty(value = "资源的前端路径，用以控制功能权限的显示和隐藏")
    @ColumnWidth(25)
    private String webPath;

    @ExcelProperty(value = "资源对应的API特征码，可以有多个，英文逗号分隔")
    @ColumnWidth(25)
    private String apiSignatureCode;

    @ExcelProperty(value = "同级内排序号，序号越小越靠前")
    @ColumnWidth(25)
    private Integer sort;

    @ExcelProperty(value = "创建人ID")
    @ColumnWidth(25)
    private Long createId;

    @ExcelProperty(value = "创建人名称")
    @ColumnWidth(25)
    private String createName;

    @ExcelProperty(value = "创建时间")
    @ColumnWidth(25)
    private Date createTime;

    @ExcelProperty(value = "修改人ID")
    @ColumnWidth(25)
    private Long updateId;

    @ExcelProperty(value = "修改人名称")
    @ColumnWidth(25)
    private String updateName;

    @ExcelProperty(value = "修改时间")
    @ColumnWidth(25)
    private Date updateTime;


}
